package com.itheima.bos.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.itheima.bos.bean.base.Courier;

public interface CourierDao extends JpaRepository<Courier, Integer>, JpaSpecificationExecutor<Courier> {

	@Query(value = "update Courier set deltag = '1' where id = ?")
	@Modifying
	void updateDelTag(Integer id2);

	@Query(value = "update Courier set deltag = null where id = ?")
	@Modifying
	void updateRestoreBatch(Integer id2);

}
